<?php
/**
 * Created by PhpStorm.
 * User: yangliu
 * Date: 2019-01-03
 * Time: 09:54
 */
namespace app\admin\model\orders;
use think\Env;
use think\Model;
class Goods extends Model
{
    public static function WechatConfig()
    {
        $config = [
            'agent_id' => Env::get('order.agent_id'),
            'corp_id' => Env::get('order.corp_id'),
            'secret'   => Env::get('order.secret'),
            'response_type' => Env::get('order.response_type'),
            'log' => [
                'level' => Env::get('order.level'),
                'file' => __DIR__.Env::get('order.file'),
            ],
            'oauth'=> [
                'scopes'=> Env::get('order.scopes'),
                'callback' => Env::get('order.callback')
            ]
        ];
        return $config;
    }
}